package main

import (
	"beego_web/models"
	_ "beego_web/routers"

	"github.com/astaxie/beego"
	"github.com/astaxie/beego/orm"
	_ "github.com/go-sql-driver/mysql"
)

func init() {
	models.RegisterDB()
}

func main() {

	orm.Debug = true
	//orm.RunSyncdb("default", false, true)

	//设置静态文件路径
	beego.SetStaticPath("/download", "download")

	beego.Run()
}
